package com.sxfq.loansupermarket.backsystem.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 管理员表
 * </p>
 *
 * @author stylefeng
 * @since 2017-07-11
 */
public class Userinfos extends Model<Userinfos> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	/**
	 * 头像
	 */
	private String avatar;
	/**
	 * 账号
	 */
	private String account;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * md5密码盐
	 */
	private String salt;
	/**
	 * 名字
	 */
	private String name;
	/**
	 * 生日
	 */
	private Date birthday;
	/**
	 * 性别（1：男 2：女）
	 */
	private Integer sex;

	private Integer age;
	/**
	 * 电子邮件
	 */
	private String email;
	/**
	 * 电话
	 */
	private String phone;
	/**
	 * 角色id
	 */
	private String roleid;
	/**
	 * 部门id
	 */
	private String deptid;
	/**
	 * 状态(1：启用  2：冻结  3：删除）
	 */
	private Integer status;
	/**
	 * 创建时间
	 */
	private Date createtime;
	/**
	 * 保留字段
	 */
	private Integer version;
	/**
	 * 角色
	 */
	private String roleName;
	private String company;

	public Integer auditNode;
	public Integer registerIsRing;
	public Integer channelAuditLevel;
	public Integer dealyes;
	public Integer isRefundAdmin;
	public Integer phonePrivileges;
	public Integer phonePrivilegesexp;

	public Integer getPhonePrivilegesexp() {
		return this.phonePrivilegesexp;
	}

	public void setPhonePrivilegesexp(Integer phonePrivilegesexp) {
		this.phonePrivilegesexp = phonePrivilegesexp;
	}

	public Integer getPhonePrivileges() {
		return this.phonePrivileges;
	}

	public void setPhonePrivileges(Integer phonePrivileges) {
		this.phonePrivileges = phonePrivileges;
	}

	public Integer getIsRefundAdmin() {
		return isRefundAdmin;
	}

	public void setIsRefundAdmin(Integer isRefundAdmin) {
		this.isRefundAdmin = isRefundAdmin;
	}

	public Integer getDealyes() {
		return dealyes;
	}

	public void setDealyes(Integer dealyes) {
		this.dealyes = dealyes;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Integer getChannelAuditLevel() {
		return channelAuditLevel;
	}

	public void setChannelAuditLevel(Integer channelAuditLevel) {
		this.channelAuditLevel = channelAuditLevel;
	}
	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Integer getRegisterIsRing() {
		return registerIsRing;
	}

	public void setRegisterIsRing(Integer registerIsRing) {
		this.registerIsRing = registerIsRing;
	}
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getAvatar() {
		return avatar;
	}

	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getSalt() {
		return salt;
	}

	public void setSalt(String salt) {
		this.salt = salt;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getRoleid() {
		return roleid;
	}

	public void setRoleid(String roleid) {
		this.roleid = roleid;
	}

	public String getDeptid() {
		return deptid;
	}

	public void setDeptid(String deptid) {
		this.deptid = deptid;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public Integer getAuditNode() {
		return auditNode;
	}

	public void setAuditNode(Integer auditNode) {
		this.auditNode = auditNode;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "User{" +
				"id=" + id +
				", avatar=" + avatar +
				", account=" + account +
				", password=" + password +
				", salt=" + salt +
				", name=" + name +
				", birthday=" + birthday +
				", sex=" + sex +
				", email=" + email +
				", phone=" + phone +
				", roleid=" + roleid +
				", deptid=" + deptid +
				", status=" + status +
				", createtime=" + createtime +
				", version=" + version +
				", dealyes=" + dealyes +
				"}";
	}
}
